<template>
    <div>
        <el-form :model="formData" ref="form" label-width="80px" :inline="false">
            <el-form-item label="父分类">
                <el-select v-model="orderType">
                    <el-option label="" value="1"></el-option>
                    <el-option label="" value="2"></el-option>
                </el-select>
            </el-form-item>
            <el-form :model="formData" ref="form" label-width="80px" :inline="false">
                <el-form-item label="分类名称">
                    <el-input v-model="name"></el-input>
                </el-form-item>
                <el-form-item label="显示排序">
                    <el-input v-model="sort"></el-input>
                </el-form-item>
                <template lang="物料/产品">
                    <el-radio v-model="address" label="1">物料</el-radio>
                    <el-radio v-model="address" label="2">产品</el-radio>
                </template>
                <el-form-item label="状态">
                    <el-select v-model="isEnabled" placeholder="选择是否启用">
                        <el-option label="是" value="1"></el-option>
                        <el-option label="否" value="2"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item>
                    <el-button type="primary" @click="onSubmit">立即修改</el-button>
                    <el-button type="primary" @click="close">关闭</el-button>
                </el-form-item>
            </el-form>
        </el-form>
    </div>
</template>

<script setup>
import { ref, defineEmits } from 'vue'
import request from "@/api/request";
let emits = defineEmits(['close'])
let formData = ref({})

let close = () => {
    emits('close')
}


//初始输入框
const name = ref('')
const sort = ref('')
const address = ref('')
const isEnabled = ref('')
const orderType = ref('')
</script>

<style lang='scss' scoped></style>
